const koaJwt = require("koa-jwt")
const secret = require("./secret")

const jwtAuth = koaJwt({
    secret,
    algorithms: ["HS256"]
}).unless({
    path: ["/users/login", "/users/register"]
})

module.exports = jwtAuth